﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace Card.Manager.Controls
{
    public class PageIndexChangeEventArgs : EventArgs
    {
        private int m_NewPageIndex;
        private int m_OldPageIndex;

        /// <summary>
        /// 页面变化EventArgs类
        /// </summary>
        public PageIndexChangeEventArgs(int newPageIndex, int oldPageIndex)
        {
            m_NewPageIndex = newPageIndex;
            m_OldPageIndex = oldPageIndex;
        }

        /// <summary>
        /// 新的页码
        /// </summary>
        public int NewPageIndex
        {
            get { return m_NewPageIndex; }
        }

        /// <summary>
        /// 原页码
        /// </summary>
        public int OldPageIndex
        {
            get { return m_OldPageIndex; }
        }
    }
    public delegate void PageIndexChangeHandler(object sender, PageIndexChangeEventArgs e);
}
